<template>
	<view class="page">
		<u-navbar title="联系我们" :auto-back="true">
			<view class="u-nav-slot" slot="right">
				<view class="nav-right" @click="openPopUp">
					<!-- <u-icon name="search" size="24" color="#376CB4"></u-icon> -->
					<u-icon name="list" size="24" style="margin-left: 20rpx;" color="#000"></u-icon>
				</view>
			</view>
		</u-navbar>
		<view class="ll"></view>
		<view class="detail-content">
			<u-parse :content="rst.content" :domain="BaseImgUrl" :tagStyle="style"></u-parse>
		</view>
		<!-- <view class="about-local">
			<map style="width: 100%; height: 100%;" :latitude="latitude" :longitude="longitude">
			</map>
		</view> -->
		<CommonTk  ref="commonTk"></CommonTk>
		<Footer></Footer>
	</view>
</template>

<script>
	import CommonTk from '@/components/CommonTk.vue'
	import Footer from '@/components/Footer.vue'
	import {
		api,
		BaseImgUrl,
		http
	} from '@/config/common.js'
	export default {
		data() {
			return {
				BaseImgUrl:BaseImgUrl,
				rst:{},
				// latitude: 39.909,
				// longitude: 116.39742,
				style: {
					// 字符串的形式
					p: 'color: #333333;line-height: 50rpx;font-weight: 400;font-family: PingFang SC;font-size: 27rpx;',
					span: 'color: #333333;line-height: 50rpx;font-weight: 400;font-family: PingFang SC;font-size: 27rpx;'
				}, 
			}
		},
		components: {
			Footer,
			CommonTk
		},
		filters: {},
		mounted() {},
		onLoad(e) {
			this.getData()
		},
		onShow() {},
		beforeDestroy() {},
		onPageScroll(e) {},
		methods: {
			openPopUp() {
				this.$refs.commonTk.openShow()
			},
			getData() {
				api.post('api/index/single', {
					id: 34
				}).then(res => {
					let rst = res.data
					let temp = [];
					if (rst.code == 1) {
						// rst.data.photo = BaseImgUrl + 'upfile/' + rst.data.photo
						this.rst = rst.data
					}
				}).catch(err => {})
			},
		}
	};
</script>

<style scoped>
	.about-local {
		width: 690rpx;
		height: 360rpx;
		margin: 0 auto;
		margin-top: 60rpx;
	}

	.detail-content {
		width: 690rpx;
		margin: 0 auto;
		margin-top: 30rpx;
	}

	.ll {
		height: 100rpx;
	}

	::v-deep .u-navbar__content {
		width: 750rpx;
		height: 88rpx;
		background: #FFFFFF;
		box-shadow: 0rpx 2rpx 14rpx 0rpx rgba(4, 0, 0, 0.14);
	}

	.nav-right {
		display: flex;
		flex-direction: row;
		align-items: center;
	}

	.logo {
		width: 306rpx !important;
		height: 55rpx !important;
	}

	page {
		background-color: #fff;
	}
</style>